package my.design.strategy;

/**
 * @author zp
 * @version 1.0
 * @description: 高级会员类 20%折扣
 * @date 2022/11/1 18:54
 */
public class AdvanceMemberStrategy implements MemberStrategy{
    @Override
    public double calcPrice(double price, int n) {
        return price * n - price * n * 0.2;
    }
}


